"""
@author: 虫师
@date: 2021-01-14
"""


class BaiduElem:
    search_input = "#kw"  # 搜索框
    search_button = "#su"  # 搜索按钮
    settings = "#s-usersetting-top"  # 设置
    search_setting = "#s-user-setting-menu > div > a.setpref"  # 搜索设置
    save_setting = 'text="保存设置"'  # 保存设置
    more_button = 'text="更多"'  # 更多按钮
    translate_button = 'text="翻译"'  # 翻译按钮

class PowerElem:
    # 用户名输入框
    username_input = '[placeholder=\"请输入手机号\\/用户名\"]'
    # 密码输入框
    password_input = '[placeholder=\"请输入密码\"]'
    # 登陆
    button_login = 'button:has-text(\"登 录\")'
    # 退出按钮
    button_exit = 'a'
    # 诊断中心菜单
    menu_diag = 'text="诊断中心"'
    # 实时告警二级菜单
    menu_realtime_warning = 'text="实时告警"'
    # 实时告警-告警数
    warning_num = 'text="告警数"'
    this_time_data_update_time = "本次数据更新时间"
